﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ApprovalFlow.Interface;

namespace ApprovalFlow
{
    public abstract class StepBody : IStepBody
    {
        public Task<ExecutionResult> RunAsync(IStepExecutionContext context)
        {
          return  Task.FromResult(Run(context));
        }

        public abstract ExecutionResult Run(IStepExecutionContext context);
    }
}
